package defs

import (
	"time"
)

//定义请求体

//用户凭据
type UserCredential struct {
	UserName string `json:"user_name"`
	Pwd string `json:"pwd"`
}

//用户信息
type UserInfo struct {
	Id int
	Login_Name string
	Pwd string
	GMT_Create time.Time
	//GMT_Modified mysql.NullTime
	GMT_Modified *time.Time
}


type VideoInfo struct {
	Id string
	AuthorId int
	Name string
	DisplayCtime string
}

type Comment struct {
	Id string
	UserName string
	Content string
	CreateTime time.Time
}

type SimpleSession struct {
	Username string
	TTL int64
}

//应答
type SignedUp struct {
	Success bool `json:"success"`
	SessionId string `json:"session_id"`
}